import axios from 'axios';
import qs from 'qs';
// 定义全局请求变量名
let base = 'http://localhost:8080';
//let base = 'http://192.168.0.30:8080';
// 登录接口
export const requestLogin = params => { return axios.post(`${base}/manager/home/login`, qs.stringify(params)) };
// 修改密码接口
export const editPwd = params => { return axios.post(`${base}/manager/home/editPwd`, qs.stringify(params)) };
//刷新token
export const Refreshtoken = params => { return axios.post(`${base}/manager/home/refreshWebToken`, qs.stringify(params)) };
// 获取首页数据
export const getHomeStat = params => { return axios.post(`${base}/manager/home/getHomeStat`, qs.stringify(params)) };
// 导航接口
export const menuList = params => { return axios.post(`${base}/manager/home/menu`, qs.stringify(params)) };
// 获取用户信息接口
export const getUserInfo = params => { return axios.post(`${base}/manager/home/userInfo`, qs.stringify(params)) };
// 获取角色列表
export const RolesList = params => { return axios.post(`${base}/manager/sysrole/list`, qs.stringify(params)) };
// 添加角色
export const addRoles = params => { return axios.post(`${base}/manager/sysrole/add`, qs.stringify(params)) };
// 修改角色
export const editRoles = params => { return axios.post(`${base}/manager/sysrole/edit`, qs.stringify(params)) };
// 删除角色
export const delRoles = params => { return axios.post(`${base}/manager/sysrole/del`, qs.stringify(params)) };
// 获取管理员列表
export const getAdminList = params => { return axios.post(`${base}/manager/sysuser/list`, qs.stringify(params)) };
// 添加管理员
export const addAdmin = params => { return axios.post(`${base}/manager/sysuser/add`, qs.stringify(params)) };
// 修改管理员
export const editAdmin = params => { return axios.post(`${base}/manager/sysuser/edit`, qs.stringify(params)) };
// 删除管理员
export const delAdmin = params => { return axios.post(`${base}/manager/sysuser/del`, qs.stringify(params)) };
// 设置管理员权限
export const AuthorityAdmin = params => { return axios.post(`${base}/manager/sysrole/saveUserRole`, qs.stringify(params)) };
// 获取菜单项
export const menu = params => { return axios.post(`${base}/manager/sysmenu/getMenuTree`, qs.stringify(params)) };
// 获取菜单项的子菜单列表
export const submenuList = params => { return axios.post(`${base}/manager/sysmenu/list`, qs.stringify(params)) };
// 添加菜单
export const addMenu = params => { return axios.post(`${base}/manager/sysmenu/add`, qs.stringify(params)) };
// 修改菜单
export const editMenu = params => { return axios.post(`${base}/manager/sysmenu/edit`, qs.stringify(params)) };
// 删除菜单
export const delMenu = params => { return axios.post(`${base}/manager/sysmenu/del`, qs.stringify(params)) };
// 获取会员列表
export const getUserList = params => { return axios.post(`${base}/manager/member/queryUserList`, qs.stringify(params)) };
// 获取会员详情
export const getUserDetail = params => { return axios.post(`${base}/manager/member/queryUserById`, qs.stringify(params)) };
// 导出会员列表
export const getUpload = params => { return axios.post(`${base}/manager/member/exportUser`, qs.stringify(params)) };
// 会员实名,拉黑和密码修改
export const editUser = params => { return axios.post(`${base}/manager/member/updateUser`, qs.stringify(params)) };
// 获取城市合伙人
export const getPartner = params => { return axios.post(`${base}/manager/user/District/getUserDistrictPageList`, qs.stringify(params)) };
// 修改城市合伙人
export const editPartner = params => { return axios.post(`${base}/manager/user/District/saveUserDistrict`, qs.stringify(params)) };
// 审核城市合伙人
export const ReviewPartner = params => { return axios.post(`${base}/manager/user/District/editUserSpStatus`, qs.stringify(params)) };
// 查询小课堂列表
export const getRoomList = params => { return axios.post(`${base}/manager/sysnews/queryList`, qs.stringify(params)) };
// 查询小课堂详情
export const getRoomDetail = params => { return axios.post(`${base}/manager/sysnews/getNews`, qs.stringify(params)) };
// 添加小课堂
export const addRoom = params => { return axios.post(`${base}/manager/sysnews/add`, qs.stringify(params)) };
// 修改小课堂
export const editRoom = params => { return axios.post(`${base}/manager/sysnews/edit`, qs.stringify(params)) };
// 删除小课堂
export const delRoom = params => { return axios.post(`${base}/manager/sysnews/del`, qs.stringify(params)) };
// 宣传图图片上传
export const UploadImg = params => { return axios.post(`${base}/manager/common/upload/uploadFile`, qs.stringify(params)) };
// 富文本上传
export const UploadRTich = params => { return axios.post(`${base}/manager/common/upload/uploadForWangeditor`, qs.stringify(params)) };
// 交易价格列表
export const getPriceList = params => { return axios.post(`${base}/manager/sysTradePrice/list`, qs.stringify(params)) };
// 交易价格修改
export const editPrice = params => { return axios.post(`${base}/manager/sysTradePrice/edit`, qs.stringify(params)) };
// 视频列表
export const getVideoList = params => { return axios.post(`${base}/manager/userVideo/queryList`, qs.stringify(params)) };
// 修改视频状态
export const editVideo = params => { return axios.post(`${base}/manager/userVideo/editStatus`, qs.stringify(params)) };
// 删除视频
export const delVideo = params => { return axios.post(`${base}/manager/userVideo/del`, qs.stringify(params)) };
// 获取商品列表
export const getGoodList = params => { return axios.post(`${base}/manager/activityGoods/queryGoodsList`, qs.stringify(params)) };
// 获取商品分类
export const getGoodType = params => { return axios.post(`${base}/manager/activityGoods/queryGoodsCategory`, qs.stringify(params)) };
// 添加商品
export const addGood = params => { return axios.post(`${base}/manager/activityGoods/addGoods`, qs.stringify(params)) };
// 修改商品状态(上下架)
export const editStatus = params => { return axios.post(`${base}/manager/activityGoods/editGoodsStatus`, qs.stringify(params)) };
// 修改商品
export const editGoods = params => { return axios.post(`${base}/manager/activityGoods/editGoods`, qs.stringify(params)) };
// 获取商品详情
export const getGoodDetail = params => { return axios.post(`${base}/manager/activityGoods/getGoods`, qs.stringify(params)) };
// 获取订单列表
export const getOrderList = params => { return axios.post(`${base}/manager/activityOrder/queryList`, qs.stringify(params)) };
// 修改订单快递单号
export const editNumber = params => { return axios.post(`${base}/manager/activityOrder/editExpressNumber`, qs.stringify(params)) };
// 导出订单
export const downloadList = params => { return axios.post(`${base}/manager/activityOrder/downloadOrderList`, qs.stringify(params)) };
// 导入单号
export const UploadExpress = params => { return axios.post(`${base}/manager/activityOrder/uploadOrderExpress`, qs.stringify(params)) };
// 获取角色菜单项
export const getRolelist = params => { return axios.post(`${base}/manager/sysrole/getRoleMenulist`, qs.stringify(params)) };
// 添加角色菜单项
export const addRoleMenu = params => { return axios.post(`${base}/manager/sysrole/addRoleMenu`, qs.stringify(params)) };
// 获取快递公司列表
export const getexpressList = params => { return axios.post(`${base}/manager/activityOrder/queryExpressList`, qs.stringify(params)) };
// 获取个人店铺商品分类
export const getGoodsCategory = params => { return axios.post(`${base}/manager/userGoods/queryGoodsCategory`, qs.stringify(params)) };
// 添加个人店铺商品分类
export const addGoodsCategory = params => { return axios.post(`${base}/manager/userGoods/addUserGoodsCategory`, qs.stringify(params)) };
// 修改个人店铺商品分类
export const editGoodsCategory = params => { return axios.post(`${base}/manager/userGoods/editUserGoodsCategory`, qs.stringify(params)) };
// 删除个人店铺商品分类
export const delGoodsCategory = params => { return axios.post(`${base}/manager/userGoods/delUserGoodsCategory`, qs.stringify(params)) };
// 获取个人·订单列表
export const getGoodsOrderList = params => { return axios.post(`${base}/manager/userGoods/queryGoodsOrderList`, qs.stringify(params)) };
// 修改个人·订单状态
export const editOrderStatus = params => { return axios.post(`${base}/manager/userGoods/editOrderStatus`, qs.stringify(params)) };
// 获取投诉列表
export const getProblem = params => { return axios.post(`${base}/manager/userGoods/queryGoodsProblemList`, qs.stringify(params)) };
// 处理用户投诉
export const editProblem = params => { return axios.post(`${base}/manager/userGoods/editGoodsProblem`, qs.stringify(params)) };
// 获取个人·商品用户列表
export const getGoodsUser = params => { return axios.post(`${base}/manager/userGoods/queryGoodsUser`, qs.stringify(params)) };
// 获取个人·商品列表
export const getGoodsUserList = params => { return axios.post(`${base}/manager/userGoods/queryGoodsForUser`, qs.stringify(params)) };
// 获取个人·商品用户详情
export const getGoodsUserDetail = params => { return axios.post(`${base}/manager/userGoods/getGoodsDetail`, qs.stringify(params)) };
// 修改个人·商品状态
export const editGoodsStatus = params => { return axios.post(`${base}/manager/userGoods/editGoodsStatus`, qs.stringify(params)) };
// 获取个人·商品审核列表
export const getNeedCheckList = params => { return axios.post(`${base}/manager/userGoods/queryNeedCheckGoodsList`, qs.stringify(params)) };
// 修改个人·商品审核状态
export const editNeedCheck = params => { return axios.post(`${base}/manager/userGoods/editGoodsCheckStatus`, qs.stringify(params)) };
// 获取游戏活动列表
export const getGameList = params => { return axios.post(`${base}/manager/gameActivity/queryActivityList`, qs.stringify(params)) };
// 获取游戏活动规则列表
export const getGameRuleList = params => { return axios.post(`${base}/manager/gameActivity/queryActivityRuleList`, qs.stringify(params)) };
// 添加游戏活动
export const addGame = params => { return axios.post(`${base}/manager/gameActivity/addActivity`, qs.stringify(params)) };
// 修改游戏活动
export const editGame = params => { return axios.post(`${base}/manager/gameActivity/editActivity`, qs.stringify(params)) };
// 删除游戏活动
export const delGame = params => { return axios.post(`${base}/manager/gameActivity/delActivity`, qs.stringify(params)) };
// 添加游戏活动规则
export const addGameRule = params => { return axios.post(`${base}/manager/gameActivity/addActivityRule`, qs.stringify(params)) };
// 删除游戏活动规则
export const delGameRule = params => { return axios.post(`${base}/manager/gameActivity/delActivityRule`, qs.stringify(params)) };
// 获取账号信息
export const getAccountInfo = params => { return axios.post(`${base}/manager/member/getUserAccountInfo`, qs.stringify(params)) };
// 修改账号信息
export const editAccountInfo = params => { return axios.post(`${base}/manager/member/editUserAccountInfo`, qs.stringify(params)) };
// 删除账号信息
export const delAccountInfo = params => { return axios.post(`${base}/manager/member/delUserAccountInfo`, qs.stringify(params)) };
// 获取团队信息
export const getTeamInfo = params => { return axios.post(`${base}/manager/member/getUserTeamInfo`, qs.stringify(params)) };
// 刷新团队信息
export const ReTeamInfo = params => { return axios.post(`${base}/manager/member/refreshUserTeamInfo`, qs.stringify(params)) };
// 获取GMS、WFS列表
export const getWgsList = params => { return axios.post(`${base}/manager/member/queryWgsList`, qs.stringify(params)) };
// 修改GMS、WFS
export const editWgs = params => { return axios.post(`${base}/manager/member/updateWfsStatus`, qs.stringify(params)) };
// 导出GMS、WFS列表
export const uploadWgsList = params => { return axios.post(`${base}/manager/member/exportWgsList`, qs.stringify(params)) };
// 获取树列表
export const getTreeList = params => { return axios.post(`${base}/manager/treegame/queryTreeList`, qs.stringify(params)) };
// 获取种树列表
export const getTreeUserList = params => { return axios.post(`${base}/manager/treegame/queryTreeUserList`, qs.stringify(params)) };
// 添加树用户
export const addTreeUser = params => { return axios.post(`${base}/manager/treegame/addTreeUser`, qs.stringify(params)) };
// 删除树用户
export const delTreeUser = params => { return axios.post(`${base}/manager/treegame/delTreeUser`, qs.stringify(params)) };
// 解绑微信
export const clearUserWx = params => { return axios.post(`${base}/manager/member/clearUserWx`, qs.stringify(params)) };
//通过手机号获取用户
export const getUserAccountInfo = params => { return axios.post(`${base}/manager/treegame/getUserAccountInfo`, qs.stringify(params)) };
//更改账号类型
export const editUserAccountMode = params => { return axios.post(`${base}/manager/treegame/editUserAccountMode`, qs.stringify(params)) };
//获取体现列表
export const getwallList = params => { return axios.post(`${base}/manager/treegame/queryWithdrawalList`, qs.stringify(params)) };
//修改提现信息
export const editwallList = params => { return axios.post(`${base}/manager/treegame/updateWithdrawalStatus`, qs.stringify(params)) };
//获取树用户
export const getUserTreeList = params => { return axios.post(`${base}/manager/treegame/queryUserTreeList`, qs.stringify(params)) };
//获取树用户详情
export const getUserTreedetail = params => { return axios.post(`${base}/manager/treegame/queryUserTreeListForTreeId`, qs.stringify(params)) };
//获取交易设置
export const getTradeStatus = params => { return axios.post(`${base}/manager/sysTradePrice/getTradeStatus`, qs.stringify(params)) };
//修改交易设置
export const editTradeStatus = params => { return axios.post(`${base}/manager/sysTradePrice/editTradeStatus`, qs.stringify(params)) };
//查看交易额和发单量
export const getUserSys = params => { return axios.post(`${base}/manager/userSys/getUserSys`, qs.stringify(params)) };
//修改交易额和发单量
export const editUserSys = params => { return axios.post(`${base}/manager/userSys/updateUserSys`, qs.stringify(params)) };
//修改交易额和发单量
export const getUserOrder = params => { return axios.post(`${base}/manager/userSys/getUserOrder`, qs.stringify(params)) };
//发放分红
export const getRedPackage = params => { return axios.post(`${base}/manager/treegame/shareRedPackage`, qs.stringify(params)) };
//查看订单举报
export const getOrderReport = params => { return axios.post(`${base}/manager/userSys/getUserOrderReport`, qs.stringify(params)) };
//修改拉黑团队
export const editpullBlackTeam = params => { return axios.post(`${base}/manager/member/pullBlackTeam`, qs.stringify(params)) };
//获取开关配置
export const getConfigList = params => { return axios.post(`${base}/manager/tradeOrder/getConfigList`, qs.stringify(params)) };
//修开关配置
export const editConfigList = params => { return axios.post(`${base}/manager/tradeOrder/editConfigList`, qs.stringify(params)) };
//获取交易订单
export const getqueryOrderList = params => { return axios.post(`${base}/manager/tradeOrder/queryOrderList`, qs.stringify(params)) };
//修改交易订单
export const editqueryOrderList = params => { return axios.post(`${base}/manager/tradeOrder/editConfigList`, qs.stringify(params)) };